home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -seriously_amiga- / programming / other / esa / examples / sss / do next >
AmigaDOS Script File  |  1999-01-25  |  526b  |  26 lines

  1. .key list
  2.  
  3. ;if you call this script with the parameter 'y', the source produced by
  4. ;ESA won't be deleted (comments will be included)
  5.  
  6. set ESA ESA
  7. set ASM phx
  8. set EXE sss
  9. set OPT to
  10.  
  11. ;ESA = ESA executable path
  12. ;ASM = your assembler's executable path
  13. ;EXE = name of the executable produced by the assembler
  14. ;OPT = option accepted by your assembler to specify EXE
  15.  
  16. failat 1
  17.  
  18. if "<list>" eq "y"
  19.   $ESA code/main.esa -c
  20.   $ASM code/main.s $OPT $EXE
  21. else
  22.   $ESA code/main.esa
  23.   $ASM code/main.s $OPT $EXE
  24.   delete code/main.s
  25. endif
  26.